* lisp/subr.el (find-tag-default-as-regexp): Return nil if `tag' is nil.
authorJuri Linkov <juri@jurta.org>
Tue, 14 May 2013 23:38:14 +0000 (02:38 +0300)
committerJuri Linkov <juri@jurta.org>
Tue, 14 May 2013 23:38:14 +0000 (02:38 +0300)
lisp/ChangeLog
lisp/subr.el

index 3002bb31edad6e7dd992d867e588cea524beef0e..dd5a88749f89f7b89a590abdbc4d7b6eec15a4d4 100644 (file)
@@ -1,3 +1,8 @@
+2013-05-14  Juri Linkov  <juri@jurta.org>
+
+       * subr.el (find-tag-default-as-regexp): Return nil if `tag' is nil.
+       (Bug#14390)
+
 2013-05-14  Glenn Morris  <rgm@gnu.org>
 
        * progmodes/f90.el (f90-imenu-generic-expression):
index 4871f3733f931a3847c0419b7feeda538bdaf24b..177e9a84a58527f74c7c5bddd58cc5076d159cad 100644 (file)
@@ -2738,7 +2738,7 @@ symbol at point exactly."
                   (get major-mode 'find-tag-default-function)
                   'find-tag-default))
         (tag (funcall tagf)))
-    (cond ((not tag))
+    (cond ((null tag) nil)
          ((eq tagf 'find-tag-default)
           (format "\\_<%s\\_>" (regexp-quote tag)))
          (t (regexp-quote tag)))))